

const path = require('path')
const webpack = require('webpack')
module.exports = {
    mode:'development',
    entry:path.resolve(__dirname,'../src/main.js'),
    output:{
        path:path.resolve(__dirname,'../dist'),
        publicPath:'./',
        filename:'js/[name][hash:8][ext]',
        chunkFileName:'js/[name][hash:8][ext]'
    },
    devServe:{
        port:8083,
        host:'localhost',
        hot:true,
        open:true
    },
    module:{
        rules:[
            {

            }
        ]
    },
    plugins:[
        new webpack.HotModuleReplacementPlugin()
    ]
}